/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim ORM is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 整型测试表 对应表《T_INTEGER》
 */
@AnAlias("TInteger")
@AnNew
@AnTable(table="T_INTEGER", key="T_ID", type="InnoDB")
public class TInteger implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="T_ID", type="long", notNull=true)    private long tId;    //1.测试编号
    @AnTableField(column="T_BOOLEAN", type="boolean", notNull=true)    private boolean tBoolean;    //2.布尔型
    @AnTableField(column="T_BYTE", type="byte", notNull=true)    private int tByte;    //3.字节型
    @AnTableField(column="T_SHORT", type="short", notNull=true)    private int tShort;    //4.短整型
    @AnTableField(column="T_INT", type="int", notNull=true)    private int tInt;    //5.整型
    @AnTableField(column="T_LONG", type="long", notNull=true)    private long tLong;    //6.长整型

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long tId()
    {
        return tId;
    }

    public TInteger tId(long tId)
    {
        this.tId = tId;
        return this;
    }

    public boolean tBoolean()
    {
        return tBoolean;
    }

    public TInteger tBoolean(boolean tBoolean)
    {
        this.tBoolean = tBoolean;
        return this;
    }

    public int tByte()
    {
        return tByte;
    }

    public TInteger tByte(int tByte)
    {
        this.tByte = tByte;
        return this;
    }

    public int tShort()
    {
        return tShort;
    }

    public TInteger tShort(int tShort)
    {
        this.tShort = tShort;
        return this;
    }

    public int tInt()
    {
        return tInt;
    }

    public TInteger tInt(int tInt)
    {
        this.tInt = tInt;
        return this;
    }

    public long tLong()
    {
        return tLong;
    }

    public TInteger tLong(long tLong)
    {
        this.tLong = tLong;
        return this;
    }
}
